package com.asj.house.controller;


import com.asj.house.entity.HouseMenu;
import com.asj.house.returns.RespEntity;
import com.asj.house.service.HouseMenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 菜单表 前端控制器
 * </p>
 *
 * @author asj
 * @since 2021-03-16
 */
@RestController
@RequestMapping("/house-menu")
@Slf4j
@Api(value = "菜单管理", tags = "菜单管理")
public class HouseMenuController {

    @Resource
    private HouseMenuService houseMenuService;

    @GetMapping
    @ApiOperation(value = "菜单列表")
    public RespEntity<List<HouseMenu>> queryAllMenus() {
        RespEntity<List<HouseMenu>> respEntity = houseMenuService.queryAllMenus();
        return respEntity;
    }

}
